package com.ecut.drug_bid.domain;

import jakarta.persistence.*;
import lombok.Getter;
import lombok.Setter;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Entity
@Table(name = "t_tender")
@Getter @Setter
public class Tender {
    @Id
    @Column(name = "tender_code", length = 50)
    private String tenderCode;

    @Column(name = "drug_name", nullable = false, length = 100)
    private String drugName;

    @Column(name = "manufacturer", nullable = false, length = 100)
    private String manufacturer;

    @Column(name = "package_req", length = 200)
    private String packageReq;

    @Column(name = "total_amount", nullable = false)
    private Integer totalAmount;

    @Column(name = "deadline", nullable = false)
    private LocalDateTime deadline;

    @Column(name = "deposit", nullable = false, precision = 12, scale = 2)
    private BigDecimal deposit;

    @Column(name = "created_by")
    private Long createdBy;

    @Column(name = "created_at")
    private LocalDateTime createdAt;

    @Column(name = "updated_at")
    private LocalDateTime updatedAt;
}